/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.bs.coregamelibrary.db;

import com.bs.coregamelibrary.config.DatabaseConfig;
import java.sql.Connection;

/**
 *
 * @author MartinLe
 */
public abstract class ConnectionManager {

    private final DatabaseConfig databaseConfig;

    public ConnectionManager(String fileName) {
        this.databaseConfig = new DatabaseConfig(fileName);
    }

    public ConnectionManager() {
        this.databaseConfig = new DatabaseConfig();
    }

    protected abstract Connection getDBConnection(String prefix);

    public DatabaseConfig getDatabaseConfig() {
        return databaseConfig;
    }

}
